import Vue from 'vue'
import Router from 'vue-router'
import LoginPage from '@/pages/login'
import AddPage from '@/pages/add'
import ListPage from '@/pages/list'
import GoodsMapPage from '@/pages/goodsmap'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'login',
      component: LoginPage
    },
    {
      path: '/add',
      name: 'add',
      component: AddPage
    },
    {
      path: '/list',
      name: 'list',
      component: ListPage
    },
    {
      path: '/goodsmap',
      name: 'goodsmap',
      component: GoodsMapPage
    }
  ]
})
